import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入ElementUI组件库
import ElementUI from 'element-ui';
// 引入ElementUI样式
import 'element-ui/lib/theme-chalk/index.css';

/* import the fontawesome core */
import { library } from '@fortawesome/fontawesome-svg-core'

/* import font awesome icon component */
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'

/* import specific icons */
import { faUserSecret ,faUser,faLock,faPlus,faEdit, faRemove, faMedkit, 
  faUserDoctor, faDriversLicense, faIdBadge, faSheqel, faCog, faInbox, faChartLine, faCapsules, faHospitalUser, faShoppingCart, faCheck, faSearch, faAmbulance, faPieChart, faBarChart, faSuitcase, faStethoscope, faListAlt, faList, faCalendar, faInfoCircle, faUsersCog, faFileInvoiceDollar, faChartBar, faBriefcase, faNotesMedical, faJpy} from '@fortawesome/free-solid-svg-icons'

/* add icons to the library */
library.add(faUserSecret,faUser,faLock,faPlus,faEdit,faRemove,faMedkit
  ,faUserDoctor,faDriversLicense,faIdBadge,faSheqel,faCog,faInbox,faChartLine,
  faCapsules,faHospitalUser,faShoppingCart,faCheck,faSearch,faAmbulance,faPieChart
  ,faBarChart,faSuitcase,faStethoscope,faListAlt,faList,faCalendar,faInfoCircle,faUsersCog,faFileInvoiceDollar,faPieChart,faBarChart,faSuitcase,faChartBar,faBriefcase,faJpy)

/* add font awesome icon component */
Vue.component('font-awesome-icon', FontAwesomeIcon)

Vue.config.productionTip = false
// 使用ElementUI插件
Vue.use(ElementUI)

//引入echarts
import * as echarts from 'echarts'//在import的后面，echarts的前面加一个 * as
//vue全局注入echarts
Vue.prototype.$echarts = echarts;


//导出成excel文件
import JsonExcel from 'vue-json-excel'
Vue.component('downloadExcel', JsonExcel)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
